﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.Blog.Console.Indexer
{
    public class Indexer
    {
        private string[] strs = new string[10];
        public Indexer()
        {
            for (int i = 0; i < 10; i++)
            {
                strs[i] = i.ToString();
            }
        }

        public string this[int index]
        {
            get
            {
                string tmp = "";
                if (index >= 0 && index < strs.Length - 1)
                {
                    tmp = "";
                }
                else
                {
                    tmp = strs[index];
                }
                return tmp;
            }
            set
            {
                if (index >= 0 && index < strs.Length - 1)
                {
                    strs[index] = value;
                }
            }
        }

    }
}
